package the.broccoli.uc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

/**
 * <p>
 * 用户与角色
 * </p>
 *
 * @author lei.liu
 * @since 2020-04-09
 */
@TableName("uc_user_role")
public class UserRole extends SuperEntity {

    private static final long serialVersionUID = -1738782595339633707L;
    /**
     *  主键ID
     */
    @TableId("user_role_id")
    private String userRoleId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 角色ID
     */
    @TableField("role_id")
    private String roleId;

    public String getUserRoleId() {
        return userRoleId;
    }

    public void setUserRoleId(String userRoleId) {
        this.userRoleId = userRoleId;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "UserRole{" +
            "userRoleId=" + userRoleId +
            ", userId=" + userId +
            ", roleId=" + roleId +
        "}";
    }
}
